package com.itheima_01;

import java.io.FileInputStream;
import java.io.IOException;

/*
    需求：字节流读文本文件数据
 */
public class FileInputStreamDemo {
    public static void main(String[] args)throws IOException {
        FileInputStream fis = new FileInputStream("myCharStream\\a.txt");

        int by;
        while ((by = fis.read())!=-1){
            System.out.print((char)by);
        }

        fis.close();
    }
}
